package com.sun.web.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.sun.web.domain.User;


public interface UserDao {
	
	public User getUserById(int userId);
	
	public User getUserByUsername(String username);
	
	public User getUserByToken(String token);

	public int insertUser(User user);
	
	public boolean checkUserExist(@Param("username")String username, @Param("password")String password);
	
	public void updateUser(User user);
	
	public List<User> listUsers();
	
	public int getUserCount();
}
